//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-03A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Big As Texas Music & Food Festival: Thomas Rhett, Dierks Bentley & Billy Strings - 3 Day Pass','Montgomery County Fairgrounds - Conroe','Conroe, TX','Friday','5/10/2024','TBD','6031424','Big-As-Texas-Music---Food-Festival--Thomas-Rhett--Dierks-Bentley---Billy-Strings---3-Day-Pass-5-10-2024'],['Big As Texas Music & Food Festival: Thomas Rhett, Clay Walker & Corey Kent (Time: TBD) - Friday','Montgomery County Fairgrounds - Conroe','Conroe, TX','Friday','5/10/2024','12:00 PM','6052075','Big-As-Texas-Music---Food-Festival--Thomas-Rhett--Clay-Walker---Corey-Kent--Time--TBD----Friday-5-10-2024'],['Colt Ford','Timber Rock Amphitheater','Farmington, PA','Saturday','6/1/2024','7:00 PM','6268947','Colt-Ford-6-1-2024'],['Colt Ford','The Edge Pavilion at Edgewater Casino','Laughlin, NV','Saturday','8/31/2024','7:00 PM','6355463','Colt-Ford-8-31-2024'],['Colt Ford & Kidd G','Sweetland Amphitheatre at Boyd Park','Lagrange, GA','Saturday','9/14/2024','8:00 PM','6295551','Colt-Ford---Kidd-G-9-14-2024'],['Colt Ford','Lorain Palace Theatre','Lorain, OH','Friday','9/27/2024','8:00 PM','6199958','Colt-Ford-9-27-2024'],['Colt Ford','Baltimore Soundstage','Baltimore, MD','Friday','12/18/2071','8:00 PM','4713609','Colt-Ford-12-18-2071']],'"Colt Ford"','https://www.ticketnetwork.com');